package cn.smvc.task.common.web;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;

import cn.smvc.task.common.service.RunService;

/**
 * 工程启动时首先加载
 * 
 * @author Ryan
 *
 */
@WebServlet(name="RunWeb",urlPatterns = "/runweb",loadOnStartup=1)
public class RunWeb extends HttpServlet{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1955437698375190232L;

	@Override
	public void init() throws ServletException {
		System.out.println("---------------------------------init--------------------------------------");
		RunService runService = new RunService();
		runService.init(getServletContext());
	}
	
}
